@model jQWidgetsDemosContext @using jQWidgets.AspNet.Core.Models; @{ ViewData["Title"] = "ASP .NET MVC Radio Button Example"; Contract contract = Model.ContractDuration; bool year = false; bool halfYear = false; bool quarterYear = false; bool month = false; if (contract == Contract.Year) { year = true; } if (contract == Contract.HalfYear) { halfYear = true; } if (contract == Contract.QuarterYear) { quarterYear = true; } if (contract == Contract.Month) { month = true; } } 12 Months Contract 6 Months Contract 3 Months Contract 1 Month Contract